package com.hwl.lab.repository;

import com.hwl.lab.entity.Peples;
import org.springframework.data.jpa.repository.JpaRepository;

import javax.transaction.Transactional;
import java.util.List;

public interface PeplesRepository extends JpaRepository<Peples,Long> {

    @Transactional
    void deleteByChengid(String chengid);
    @Transactional
    List<Peples> findByFamilyid(String familyid);
    @Transactional
    void deleteByFamilyid(String familtid);
    @Transactional
    Peples findByChengid(String chengid);
}
